<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>replaceChild</title>
    </head>
    <body>
        <div id="adiv">
            <span id="innerspan">span</span>
        </div>
        <script src="replaceChild.js"></script>
    </body>
</html>